namespace PropertyExpression.ReactiveRelation.Values
{
    public static class IntValue
    {
        public static IValue<decimal> ToDecimal(
            this IValue<int> value)
        {
            return value.Convert(_ => (decimal)_);
        }

        public static IValue<decimal> Mult(
            this IValue<int> value1, IValue<decimal> value2)
        {
            return value1.Func(value2, (x, y) => x * y);
        }
    }
}